﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using STX.Admin.Models.TabCategory;
using STX.Service;
using STX.Domain;
using STX.Web.Framework;
namespace STX.Admin.Controllers
{
    public class TabCategoryController: BasePages1Controller<TabCategory, IndexModel, AddModel, EditModel, QueryModel> 
    {
        public TabCategoryService TabCategoryService { get; set; }


        protected override void OnInit(out Func<BaseService<TabCategory>> thisService, out Func<IndexModel> getIndexModelFunc, out Func<AddModel> getAddModelFunc, out Func<int, EditModel> getEditModelFunc)
        {
            thisService = () => TabCategoryService;
            getIndexModelFunc = () => new IndexModel();
            getAddModelFunc = () => new AddModel();
            getEditModelFunc = id => new EditModel();
        }

        protected override long AddHandler(AddModel addModel)
        {
            throw new NotImplementedException();
        }

        protected override bool EditHandler(EditModel editModel)
        {
            throw new NotImplementedException();
        }

        protected override IQueryable<TabCategory> QueryHandler(QueryModel queryModel, IQueryable<TabCategory> queryable)
        {
            return queryable;
        }
    }
}
